package com.uls.ycl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 维修记录对象 ycl_repair_record
 * 
 * @author ycl
 * @date 2024-11-16
 */
public class RepairRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修记录ID */
    private Long recordId;

    /** 报修请求ID */
    @Excel(name = "报修请求ID")
    private Long requestId;

    /** 维修人员ID */
    @Excel(name = "维修人员ID")
    private Long personnelId;

    /** 维修状态 */
    @Excel(name = "维修状态")
    private Integer status;

    /** 维修措施 */
    @Excel(name = "维修措施")
    private String repairMeasures;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date endTime;

    //
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setRequestId(Long requestId) 
    {
        this.requestId = requestId;
    }

    public Long getRequestId() 
    {
        return requestId;
    }
    public void setPersonnelId(Long personnelId) 
    {
        this.personnelId = personnelId;
    }

    public Long getPersonnelId() 
    {
        return personnelId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setRepairMeasures(String repairMeasures) 
    {
        this.repairMeasures = repairMeasures;
    }

    public String getRepairMeasures() 
    {
        return repairMeasures;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("requestId", getRequestId())
            .append("personnelId", getPersonnelId())
            .append("status", getStatus())
            .append("repairMeasures", getRepairMeasures())
            .append("remark", getRemark())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
